package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysBuildingUnit;

import java.math.BigDecimal;

/**
 * 房产单元管理业务对象 sys_building_unit
 *
 * @author LSL
 * @date 2024-05-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysBuildingUnit.class, reverseConvertGenerate = false)
public class SysBuildingUnitBo extends BaseEntity {

    /**
     * 单元ID
     */
    @NotNull(message = "单元ID不能为空", groups = {EditGroup.class})
    private Long unitId;

    /**
     * 单元名称
     */
    @NotBlank(message = "单元名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 单元编号
     */
    @NotBlank(message = "单元编号不能为空", groups = {AddGroup.class, EditGroup.class})
    private String unitNum;

    /**
     * 楼ID
     */
    @NotNull(message = "楼ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long floorId;

    /**
     * 小区id
     */
    @NotNull(message = "小区id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long communityId;

    /**
     * 总层数
     */
    @NotNull(message = "总层数不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long layerCount;

    /**
     * 是否有电梯 0有 1 无
     */
    @NotBlank(message = "是否有电梯 0有 1 无不能为空", groups = {AddGroup.class, EditGroup.class})
    private String lift;

    /**
     * 单元面积
     */
    @NotNull(message = "单元面积不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal unitArea;

    /**
     * 状态（0正常 1停用）
     */
    private String status;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = {AddGroup.class, EditGroup.class})
    private String remark;


}
